package com.authstr.model.base;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;


@Data
@TableName(value = "base_user")
public class BaseUser  extends BaseModel {

	//姓名
	private String name;

	//账号
	@NotEmpty(message = "账号不能为空")
	@Length(min=4,max = 16,message = "账号需为4-16字符")
	private String account;

	//盐值
	private String salt;

	//密码
	@NotEmpty(message = "密码不能为空")
	private String password;

	//	性别
	private Integer sex_id;

	//邮箱
	private String email;

	//手机号
	private String phone;

	//备注
	private String remark;

	//用户类型
	private Integer user_type;

	//状态
	private Integer status;
}
